import moment from 'moment'

// 销售基础数据管理-列表
export const listThead = [
  {
    type: 'selection',
    minWidth: 60,
    align: 'center'
  },
  {
    title: '姓名',
    key: 'userName',
    minWidth: 180
  },
  {
    title: '可持有客户数上限',
    key: 'customerCount',
    minWidth: 180
  },
  {
    title: '未成交客户是否流入公海',
    key: 'openUnDealThrow',
    minWidth: 180,
    render: (h, params) => {
      const text = params.row.openUnDealThrow ? '是' : '否'
      return h('span', text)
    }
  },
  {
    title: '未成交客户流入公海时间',
    key: 'unDealThrowDay',
    minWidth: 180,
    //   render: (h, params) => {
    //     const text = params.row.createTime ? moment(params.row.createTime).format('YYYY-MM-DD HH:mm') : ''
    //     return h('span', text)
    //   }
  },
  {
    title: '已成交客户是否流入公海',
    key: 'openDealThrow',
    minWidth: 180,
    render: (h, params) => {
      const text = params.row.openDealThrow ? '是' : '否'
      return h('span', text)
    }
  },
  {
    title: '已成交客户流入公海时间',
    key: 'dealThrowDay',
    minWidth: 180,
  },
  {
    title: '操作',
    key: 'action',
    minWidth: 120,
    slot: 'action',
    fixed: 'right',
    align: 'center',
  }
]

